<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/vectrics.tld"    prefix="vectrics" %>

<%@ page import="org.vectrics.security.*" %>
<%@ page import="org.vectrics.user.*" %>
<%@ page import="org.vectrics.hibernate.*" %>
<%@ page import="org.vectrics.provider.*" %>


<vectrics:errors/>

<%
	String domainId = ThreadProperties.getDomain().getId().toString();
%>

<jsp:useBean id="themeForm" class="com.vectrics.hosting.ChangeThemeStrutsForm" scope="request"/>

<html:form action="/admin/theme/save" method="POST">
	<input type="hidden" name="domainId" value="<%=domainId%>" >
	
	<table width="100%">
		<tr>
			<td width="50%">
				<table cellpadding="4" cellspacing="1">
					<tr>
						<td class="formBg1" valign="top" width="150">
							<font class="formLabelClass">Theme</font>
						</td>
						<td class="formBg1" valign="top">
							<html:select name="themeForm" property="themeName" styleClass="formComboClass">
							  <html:options collection="themes" 
							  		labelProperty="name" property="code"/>
							</html:select>
						</td>
						<td></td>
					</tr>

					
					<tr>
						<td valign="TOP" align="left"></td>
						<td valign="TOP" align="left">
							<vectrics:formButton elementId="ok.btn" code="button.ok" phraseCode="button.ok" value="submit" name="submit"/>
							&nbsp;
							<vectrics:formButton elementId="cancel.btn" code="button.cancel" phraseCode="button.cancel" value="cancel" name="cancel"/>						
						</td>
						<td></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	
	<table>
		<tr>
			<td>
				<table>
					<tr>
						<td>
							<font><b>Meadow</b></font>
						</td>
					</tr>
					<tr>
						<td>
							<a href="http://www.vectrics.com/flashrecruit/graphics/theme-snapshots/meadow_full.gif"
								 onclick="OpenLarge(this.href, 4); return false"								
								>
								<img src="http://www.vectrics.com/flashrecruit/graphics/theme-snapshots/meadow_thumb.gif" border="0">
							</a>
						</td>
					</tr>
				</table>
			</td>
			<td>
				<table>
					<tr>
						<td>
							<font><b>Patriot</b></font>
						</td>
					</tr>
					<tr>
						<td>
							<a href="http://www.vectrics.com/flashrecruit/graphics/theme-snapshots/patriot_full.gif" 
								 onclick="OpenLarge(this.href, 4); return false"								
								>
								<img src="http://www.vectrics.com/flashrecruit/graphics/theme-snapshots/patriot_thumb.gif" border="0">
							</a>
						</td>
					</tr>
				</table>
			<td>
		<tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td>
				<table>
					<tr>
						<td>
							<font><b>Ocean</b></font>
						</td>
					</tr>
					<tr>
						<td>
							<a href="http://www.vectrics.com/flashrecruit/graphics/theme-snapshots/ocean_full.gif"
								 onclick="OpenLarge(this.href, 4); return false"								
								>
								<img src="http://www.vectrics.com/flashrecruit/graphics/theme-snapshots/ocean_thumb.gif" border="0">
							</a>
						</td>
					</tr>
				</table>
			</td>
			<td>
				<table>
					<tr>
						<td>
							<font><b>Rainforest</b></font>
						</td>
					</tr>
					<tr>
						<td>
							<a href="http://www.vectrics.com/flashrecruit/graphics/theme-snapshots/rainforest_full.gif"
								 onclick="OpenLarge(this.href, 4); return false"								
								>
								<img src="http://www.vectrics.com/flashrecruit/graphics/theme-snapshots/rainforest_thumb.gif">
							</a>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>	
</html:form>
